import pygame

pygame.init()

# 基础设置
# 颜色
color_Black = (0, 0, 0)
color_White = (255, 255, 255)
color_Red = (255, 0, 0)
color_DeepSkyBlue1 = (0, 191, 255)
color_Firebrick = (178, 34, 34)
color_LimeGreen = (50, 205, 50)
# 字体
text_H_01 = 40  # 字体高度01
text_H_02 = 30  # 字体高度02
font_01 = pygame.font.Font('font/KAI.TTF', text_H_01)  # 字体格式01
font_02 = pygame.font.Font('font/KAI.TTF', text_H_02)  # 字体格式02

# 窗口设置
# 窗口尺寸
windowSize = (1200, 800)  # 窗口尺寸
window_W = windowSize[0]  # 窗口宽度
window_H = windowSize[1]  # 窗口高度
# 窗口初始化
windowName = '建华富翁'  # 窗口名称
windowIcon = pygame.image.load('image/ico/m6.ico')  # 窗口图标地址
windowBackgroud = pygame.transform.scale((pygame.image.load('image/map1.jpg')), windowSize)  # 窗口背景图

# 单元格设置
unit_R1_num = (6, 4)  # 第一周期单元格数
unit_R1_W_num = unit_R1_num[0]  # 第一周期横向单元格数
unit_R1_H_num = unit_R1_num[1]  # 第一周期竖向单元格数
unit_W = window_W / unit_R1_W_num  # 单元格宽度
unit_H = window_H / unit_R1_H_num  # 单元格高度

# 建筑设置
# 偏移量
offset = 6
# 建筑尺寸
buildImage_W = 80  # 建筑宽度
buildImage_H = 80  # 建筑高度
# 建筑图标导入
buildImage_00 = pygame.transform.scale(pygame.image.load('image/building_0/j1.png'), (buildImage_W, buildImage_H))
buildImage_01 = pygame.transform.scale(pygame.image.load('image/building/b1.png'), (buildImage_W, buildImage_H))
buildImage_02 = pygame.transform.scale(pygame.image.load('image/building/b2.png'), (buildImage_W, buildImage_H))
buildImage_03 = pygame.transform.scale(pygame.image.load('image/building/b3.png'), (buildImage_W, buildImage_H))
buildImage_04 = pygame.transform.scale(pygame.image.load('image/building/b4.png'), (buildImage_W, buildImage_H))
buildImage_05 = pygame.transform.scale(pygame.image.load('image/building_0/j2.png'), (buildImage_W, buildImage_H))
buildImage_06 = pygame.transform.scale(pygame.image.load('image/building/b5.png'), (buildImage_W, buildImage_H))
buildImage_07 = pygame.transform.scale(pygame.image.load('image/building/b6.png'), (buildImage_W, buildImage_H))
buildImage_08 = pygame.transform.scale(pygame.image.load('image/building_0/j3.png'), (buildImage_W, buildImage_H))
buildImage_09 = pygame.transform.scale(pygame.image.load('image/building/b7.png'), (buildImage_W, buildImage_H))
buildImage_10 = pygame.transform.scale(pygame.image.load('image/building/b11.png'), (buildImage_W, buildImage_H))
buildImage_11 = pygame.transform.scale(pygame.image.load('image/building/n1.png'), (buildImage_W, buildImage_H))
buildImage_12 = pygame.transform.scale(pygame.image.load('image/building/n2.png'), (buildImage_W, buildImage_H))
buildImage_13 = pygame.transform.scale(pygame.image.load('image/building_0/j4.png'), (buildImage_W, buildImage_H))
buildImage_14 = pygame.transform.scale(pygame.image.load('image/building/n3.png'), (buildImage_W, buildImage_H))
buildImage_15 = pygame.transform.scale(pygame.image.load('image/building/n6.png'), (buildImage_W, buildImage_H))

# 棋子设置
# 棋子尺寸
chessImage_W = 40  # 棋子宽度
chessImage_H = 40  # 棋子高度
# 棋子图片导入
chess_0 = pygame.transform.scale(pygame.image.load('image/player/e1.png'), (chessImage_W, chessImage_H))  # 棋子01
chess_1 = pygame.transform.scale(pygame.image.load('image/player/e2.png'), (chessImage_W, chessImage_H))  # 棋子02

# 骰子设置
# 骰子尺寸
diceImage_W = 60  # 骰子宽度
diceImage_H = 60  # 骰子高度
# 骰子初始位置
dice_x0 = 200  # 骰子初始坐标x0
dice_y0 = 200  # 骰子初始坐标y0
# 骰子图片导入
dice_0 = pygame.transform.scale(pygame.image.load('image/dice/dice_01.jpg'), (diceImage_W, diceImage_H))
dice_1 = pygame.transform.scale(pygame.image.load('image/dice/dice_02.jpg'), (diceImage_W, diceImage_H))
dice_2 = pygame.transform.scale(pygame.image.load('image/dice/dice_03.jpg'), (diceImage_W, diceImage_H))
dice_3 = pygame.transform.scale(pygame.image.load('image/dice/dice_04.jpg'), (diceImage_W, diceImage_H))
dice_4 = pygame.transform.scale(pygame.image.load('image/dice/dice_05.jpg'), (diceImage_W, diceImage_H))
dice_5 = pygame.transform.scale(pygame.image.load('image/dice/dice_06.jpg'), (diceImage_W, diceImage_H))
dice = [dice_0, dice_1, dice_2, dice_3, dice_4, dice_5]


# 信息窗口

# 按钮
# 按钮图片导入
button_yes = pygame.image.load('image/button/h3.png')
# yes2 = pygame.image.load('')
button_no = pygame.image.load('image/button/h4.png')
# no2 = pygame.image.load('')
#
# rollDiceSound = pygame.mixer.Sound('')
# bgm = pygame.mixer.Sound('')
# moneySound = pygame.mixer.Sound('')

# while True:  # 循环
#     pygame.display.update()
#     for event in pygame.event.get():
#         if event.type == pygame.QUIT:
#             exit()
